package com.xuxin.nantai.contract;

import com.xuxin.nantai.bean.BaseBean;
import com.xuxin.nantai.bean.DefaultGroupBean;
import com.xuxin.nantai.bean.FlowingCodeBean;
import com.xuxin.nantai.bean.GroupBean;
import com.xuxin.nantai.bean.InspectorBean;
import com.xuxin.nantai.presenter.CompleteDetailUpdatePresenter;
import com.xuxin.nantai.presenter.CompleteUpdatePresenter;

/**
 * Created by xu_xin
 * Created on 2020.06.08 0008
 */
public interface CompleteUpdateContract {

    interface Model {

        void getInspector(CompleteUpdatePresenter presenter, String loginName, String TeamType);

        void getFlowingCode(CompleteUpdatePresenter presenter, String FlowingCode);

        void getGroups(CompleteUpdatePresenter presenter);

        void getDefaultGroup(CompleteUpdatePresenter presenter, String LoginName);

        void update(CompleteUpdatePresenter presenter,
                    String LoginName,
                    String UserName,
                    String Guid,
                    String ID,
                    String cInvCode,
                    String cInvName,
                    String PackQty,
                    String ComNum,
                    String CheckNum,
                    String InspectorCode,
                    String InspectorName,
                    String InspectTime,
                    String FacArea,
                    String TeamType,
                    int IsReCheck,
                    String FlowingCode,
                    String GroupName,
                    String GroupCode);
    }

    interface View extends BaseContract.view {

        void onSuccess(InspectorBean inspectorBean);

        void onSuccess(FlowingCodeBean flowingCodeBean);

        void onSuccess(GroupBean groupBean);

        void onSuccess(DefaultGroupBean defaultGroupBean);

        void onSuccess(BaseBean baseBean);
    }

    interface Presenter extends BaseContract.presenter {

        void getInspector(String loginName, String TeamType);

        void getFlowingCode(String FlowingCode);

        void getGroups();

        void update(String LoginName,
                    String UserName,
                    String Guid,
                    String ID,
                    String cInvCode,
                    String cInvName,
                    String PackQty,
                    String ComNum,
                    String CheckNum,
                    String InspectorCode,
                    String InspectorName,
                    String InspectTime,
                    String FacArea,
                    String TeamType,
                    int IsReCheck,
                    String FlowingCode,
                    String GroupName,
                    String GroupCode);

        void getDefaultGroup(String LoginName);

        void onSuccess(InspectorBean inspectorBean);

        void onSuccess(FlowingCodeBean flowingCodeBean);

        void onSuccess(GroupBean groupBean);

        void onSuccess(DefaultGroupBean defaultGroupBean);

        void onSuccess(BaseBean baseBean);
    }
}